<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>溧阳全景</title>
	<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<link href="../../plugins/mui/mui.min.css" rel="stylesheet" />
	<link rel="stylesheet" href="../../css/city/vr.css">
	<script src="../../js/statistics.js"></script>
</head>
<body>
	<header class="mui-bar mui-bar-nav header">
		<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" id="back1"></a>
		<h1 class="mui-title">溧阳全景</h1>
	</header>
	<script src="../../plugins/mui/mui.min.js"></script>
	<script src="../../plugins/jquery/jquery-3.1.0.min.js"></script>
	<script src="../../js/getApiToken.js"></script>
	<script src="../../js/md5.js"></script>
	<script>
	mui.init({
		swipeBack: false,
//		statusBarBackground: '#43ac45',
		gestureConfig: {
			doubletap: true
		}
	});
	mui.plusReady(function(){
		//关闭等待框
		plus.nativeUI.closeWaiting();
		//显示当前页面
		mui.currentWebview.show('slide-in-right',500);
		var self = plus.webview.currentWebview();
		var type = self.vrtype;
		inittabitemWebviews( type);
	});
	function inittabitemWebviews( type){
		var data =[
			'https://720yun.com/t/1d128qO5clf?pano_id=895716',
			'https://720yun.com/t/40123qO5ubv?pano_id=896830',
//			'https://www.baidu.com',
//			'https://720yun.com/',
			'https://720yun.com/t/dc421ua6m16?pano_id=1640369',
			'https://720yun.com/t/e67209pdy4f?pano_id=1443101',
			'https://720yun.com/t/4742c9iucur?pano_id=1419120',
			'https://720yun.com/t/c7b27ci5ybi?pano_id=1232771',
			'https://720yun.com/t/b2426qO6jnv?pano_id=903287',
			'https://720yun.com/t/8ab24a8Ocy6?pano_id=736008',
			'https://720yun.com/t/5a12bwOg91s?pano_id=123960',
			'https://720yun.com/t/e902eqzga1a?pano_id=656923',
			'https://720yun.com/t/5ce22qzgaer?pano_id=733822',
			'https://720yun.com/t/c48jOr4wsa1?pano_id=1817095'
		];
		barItemWebviewArray = mui.preload({
			url:data[type - 1],
			//			url:'https://www.baidu.com',
			id:Math.random(),
			styles:{
				top:'44px',
				bottom: '0',
				left: '0px',
				bounce: 'vertical',
				background:'transparent'
			},
			waiting:{
				autoShow:true,//自动显示等待框，默认为true
				title:'正在加载...'//等待对话框上显示的提示内容
			}
		});
		mainWebview = plus.webview.currentWebview();
		mainWebview.append(barItemWebviewArray);
	}
	</script>
</body>
</html>